home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / System / Felix 1.1 / Programmer README < prev    next >
Encoding:
Text File  |  1994-04-16  |  1.4 KB  |  27 lines  |  [TEXT/R*ch]

  1.  
  2. Hi,
  3.  
  4. This is a freeware extension I wrote a year ago. It is supposed to help you open a file with any application - when you double-click
  5. a file and hold the Control key, you get a dialog asking which app you want to use to open the file. It has some severe limitations,
  6. though, so I dropped it.
  7.  
  8. However, it may be useful as a code sample to get newbies started on INIT/cdev programming. The thing is made up of three projects:
  9.     Loader.π                The INIT code
  10.     Code128.π            The patch code
  11.     Felix cdev                The cdev interface code
  12.     
  13. Felix works by patching PBDTGetAPPL, which the Finder uses when trying to find the app corresponding to a given file. If the control
  14. key is down, it uses StandardGetFile to prompt the user for another app instead of chainging to the regular PBDTGetAPPL routine.
  15.  
  16. There are a few things which this code doesn't do, or does in a wrong way:
  17.     Patch/cdev communication            Completely inexistent. To do it, use Gestalt or the PPC Toolbox.
  18.     INIT/Patch communication                Done by writing data into code, which is uncool. Today I would use Gestalt.
  19.     Trap patching                                Correct on 68K, but remember that it has changed on PowerPC.
  20.     
  21. Bottom line: this code is of poor quality. Keep that in mind, and feel free to improve on it.
  22.  
  23. Of course, you are free to use it in any way you want. I retain no rights on it. Happy patching!
  24.  
  25. François Pottier. April 16th, 1994
  26. pottier@dmi.ens.fr
  27.